package com.test.dao;

import com.test.domain.Address;

import java.util.List;

public interface AddressDao {

    //增加收货地址
    void insertAddress(Address address);

    //获取所有收货地址通过顾客手机号
    List<Address> getAddressListByPhoneNumber(String customerPhoneNumber);

    //更新收货人名字通过地址码
    void updateNameByAddressNumber(String addressNumber,String name);

    //更新收货人手机号通过地址码
    void updatePhoneNumberByAddressNumber(String addressNumber,String phoneNumber);

    //更新收货人地址通过地址码
    void updateAddressByAddressNumber(String addressNumber,String address);

    //删除地址通过地址码
    void deleteAddressByAddressNumber(String addressNumber);
}
